package pao.akka.util;

import java.util.List;

/**
 * @Author: 陶鹏飞
 * @Description:
 * @Date: 2018/9/10-21:34
 * @email: taopengfei1223@foxmail.com
 **/
public class Fitness {
    public static double fitness(List<Double> x) {
        double sum = 0;
        for (int i = 1; i < x.size(); i++) {
            sum += Math.sqrt(x.get(i));
        }
        return sum;
    }
}
